package com.china08.yxyapi.service.manage.tec.teaching.lecture;

import java.util.List;

import com.china08.yxyapi.entity.es.ElasticYxyYxyQuesResource;

public interface ElasticQuesService {

    /**
     * 根据试题id列表
     * 
     * @param list
     *            ids
     * @return
     */
    List<ElasticYxyYxyQuesResource> findByQuesIdIn(List<String> list);

    /**
     * 根据id查询
     * 
     * @param subject
     * @param quesId
     * @return
     */
    ElasticYxyYxyQuesResource findByEsQuesId(String quesId);

    /**
     * 根据题型,知识点,难度系数查询一道试题
     * 
     * @param questionType
     * @param knowIdList
     * @param difficultLevel
     * @param quesIdList
     * @return
     */
    ElasticYxyYxyQuesResource findByQuestionTypeAndQuesIdIn(String questionType, List<Integer> knowIdList,
            String difficultLevel, List<String> quesIdList);

    /**
     * 根据题型,知识点,难度系数查询三道试题
     * 
     * @param questionType
     * @param knowIdList
     * @param difficultLevel
     * @param quesIdList
     * @return
     */
    List<ElasticYxyYxyQuesResource> findTop3ByQuestionTypeAndQuesIdNotIn(String questionType, List<Integer> knowIdList,
            String difficultLevel, List<String> quesIdList);

    List<ElasticYxyYxyQuesResource> findQuestionByDifficultLevelNext(String questionType, List<Integer> knowIdList,
            String difficultLevel, List<String> quesIdList);

}
